package com.zlc.common.core.user.mapper;

import com.zlc.common.core.user.model.vo.MayanPlatUserAgentVo;
import com.zlc.common.model.user.UserAgentRequest;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlc.common.core.user.model.entity.MayanPlatUserAgent;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author  zl
 * @date 2025-12-02 
 */
@Mapper
public interface MayanPlatUserAgentMapper extends BaseMapper<MayanPlatUserAgent> {

    /**
     * 查询用户代理列表
     */
    List<MayanPlatUserAgentVo> queryUserAgentList(UserAgentRequest request);


    /**
     * 查询指定用户的代理用户
     */
    List<String> queryAgentUserAccount(@Param(value = "account") String account, @Param(value = "nowDate")Date nowDate);
}
